﻿using System;
using System.Collections.Generic;

namespace VisionCloud.Domain.DtoModel.Sys
{
    public class DeviceUpdateResponseDto
    {
        /// <summary>
        /// python模型文件列表
        /// </summary>
        public List<DeviceUpdateFileInfo> ModeList { get; set; } = new List<DeviceUpdateFileInfo>();

        public DeviceUpdatePythonInfo PythonInfo { get; set; }

        //2023-5-23,优化在线更新逻辑
        /// <summary>
        /// 框架部分大文件,包括pt和dll文件
        /// </summary>
        public List<DeviceUpdateFileInfo> FrameBigParts { get; set; } = new List<DeviceUpdateFileInfo>();

        /// <summary>
        /// 新的加密狗安装文件
        /// </summary>
        public DongleExeInfo DongleExeInfo { get; set; }
    }

    public class DeviceUpdateFileInfo
    {
        /// <summary>
        /// 文件名
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 文件Url
        /// </summary>
        public string FileUrl { get; set; }

        /// <summary>
        /// CRC32编码
        /// </summary>
        public string CrcCode { get; set; }
    }

    public class DeviceUpdatePythonInfo
    {
        /// <summary>
        /// 版本号
        /// </summary>
        public string Version { get; set; }

        /// <summary>
        /// Python压缩包
        /// </summary>
        public string FileUrl { get; set; }
    }

    public class DongleExeInfo
    {
        public string FileName { get; set; }

        public string FileVersion { get; set; }

        public string FileUrl { get; set; }
    }
}